package com.jshoperxms.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * Created by sdywcd on 2020/1/1.
 * Des:
 */
@Entity
@Table(name = "yd_article_givegift_rd_t", schema = "jshoperxms", catalog = "")
public class YdArticleGivegiftRdT {
    private String id;
    private String ydarticleid;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String ydarticletitle;
    private String begivenwxopenid;
    private String begivenmemberid;
    private String givewxopenid;
    private String givememberid;
    private String giveway;
    private long givetime;
    private BigDecimal money;
    private String giftid;
    private String giftname;
    private String gifttype;
    private String givesuccessful;
    private String memberid;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "YDARTICLEID", nullable = false, length = 25)
    public String getYdarticleid() {
        return ydarticleid;
    }

    public void setYdarticleid(String ydarticleid) {
        this.ydarticleid = ydarticleid;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "YDARTICLETITLE", nullable = false, length = 100)
    public String getYdarticletitle() {
        return ydarticletitle;
    }

    public void setYdarticletitle(String ydarticletitle) {
        this.ydarticletitle = ydarticletitle;
    }

    @Basic
    @Column(name = "BEGIVENWXOPENID", nullable = false, length = 25)
    public String getBegivenwxopenid() {
        return begivenwxopenid;
    }

    public void setBegivenwxopenid(String begivenwxopenid) {
        this.begivenwxopenid = begivenwxopenid;
    }

    @Basic
    @Column(name = "BEGIVENMEMBERID", nullable = false, length = 25)
    public String getBegivenmemberid() {
        return begivenmemberid;
    }

    public void setBegivenmemberid(String begivenmemberid) {
        this.begivenmemberid = begivenmemberid;
    }

    @Basic
    @Column(name = "GIVEWXOPENID", nullable = false, length = 25)
    public String getGivewxopenid() {
        return givewxopenid;
    }

    public void setGivewxopenid(String givewxopenid) {
        this.givewxopenid = givewxopenid;
    }

    @Basic
    @Column(name = "GIVEMEMBERID", nullable = false, length = 25)
    public String getGivememberid() {
        return givememberid;
    }

    public void setGivememberid(String givememberid) {
        this.givememberid = givememberid;
    }

    @Basic
    @Column(name = "GIVEWAY", nullable = false, length = 20)
    public String getGiveway() {
        return giveway;
    }

    public void setGiveway(String giveway) {
        this.giveway = giveway;
    }

    @Basic
    @Column(name = "GIVETIME", nullable = false)
    public long getGivetime() {
        return givetime;
    }

    public void setGivetime(long givetime) {
        this.givetime = givetime;
    }

    @Basic
    @Column(name = "MONEY", nullable = false, precision = 2)
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Basic
    @Column(name = "GIFTID", nullable = false, length = 25)
    public String getGiftid() {
        return giftid;
    }

    public void setGiftid(String giftid) {
        this.giftid = giftid;
    }

    @Basic
    @Column(name = "GIFTNAME", nullable = false, length = 100)
    public String getGiftname() {
        return giftname;
    }

    public void setGiftname(String giftname) {
        this.giftname = giftname;
    }

    @Basic
    @Column(name = "GIFTTYPE", nullable = false, length = 1)
    public String getGifttype() {
        return gifttype;
    }

    public void setGifttype(String gifttype) {
        this.gifttype = gifttype;
    }

    @Basic
    @Column(name = "GIVESUCCESSFUL", nullable = false, length = 1)
    public String getGivesuccessful() {
        return givesuccessful;
    }

    public void setGivesuccessful(String givesuccessful) {
        this.givesuccessful = givesuccessful;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = true, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YdArticleGivegiftRdT that = (YdArticleGivegiftRdT) o;
        return createtime == that.createtime &&
                updatetime == that.updatetime &&
                versiont == that.versiont &&
                givetime == that.givetime &&
                Objects.equals(id, that.id) &&
                Objects.equals(ydarticleid, that.ydarticleid) &&
                Objects.equals(status, that.status) &&
                Objects.equals(creatorid, that.creatorid) &&
                Objects.equals(ydarticletitle, that.ydarticletitle) &&
                Objects.equals(begivenwxopenid, that.begivenwxopenid) &&
                Objects.equals(begivenmemberid, that.begivenmemberid) &&
                Objects.equals(givewxopenid, that.givewxopenid) &&
                Objects.equals(givememberid, that.givememberid) &&
                Objects.equals(giveway, that.giveway) &&
                Objects.equals(money, that.money) &&
                Objects.equals(giftid, that.giftid) &&
                Objects.equals(giftname, that.giftname) &&
                Objects.equals(gifttype, that.gifttype) &&
                Objects.equals(givesuccessful, that.givesuccessful) &&
                Objects.equals(memberid, that.memberid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, ydarticleid, status, createtime, creatorid, updatetime, versiont, ydarticletitle, begivenwxopenid, begivenmemberid, givewxopenid, givememberid, giveway, givetime, money, giftid, giftname, gifttype, givesuccessful, memberid);
    }
}
